//
//  SQLite.h
//  ChinaMerchantBank
//
//  Created by chen wei on 13-6-28.
//  Copyright (c) 2013年 xguanjia. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "sqlite3.h"

@interface SQLite : NSObject {
    sqlite3*    m_sql;
    NSString*    m_dbName;
}
@property(nonatomic)sqlite3*    m_sql;
@property(nonatomic,retain)NSString*    m_dbName;

-(id)initWithDbName:(NSString*)dbname;
-(BOOL)openOrCreateDatabase:(NSString*)DbName;
-(BOOL)createTable:(NSString*)sqlCreateTable;
-(BOOL)updateTable:(NSString*)sqlUpdate;
-(BOOL)updateGreatTable:(NSMutableArray*)sqlUpdate;
-(NSArray*)querryTable:(NSString*)sqlQuerry;
-(NSArray*)querryTableByCallBack:(NSString*)sqlQuerry;

@end